<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>等待审核</title>
<script type="text/javascript" src="../boot.js"></script>
<script>
function parsePage(){
$('#toolbar').toolbar();
toolSearch();

tbgrid = $('#tbList').datagrid({
				data:{"total":1,"rows":[{'id':'1','col1':'offline-13070315045112487','col2':'我是分销商7','col3':'ppj113','col4':'银行汇款','col5':'中国农业银行深圳支行\Belle国际','col6':'--','col7':'12312.00','col8':'ewrsfsd1232','col9':'2013-07-03 00:00:00','col10':'2013-07-03 15:04:51'}]},
				singleSelect:true,
		    columns:[[
					{
					title:'充值序号',
					field:'col1',
					width:100,
					sortable:true
				    },
					{
					title:'分销商名称',
					field:'col2',
					width:100
					},{
					title:'登录账号',
					field:'col3',
					width:80
					},{
					title:'汇款类型',
					field:'col4',
					width:60
					},{
					title:'开户银行\账号',
					field:'col5',
					width:100
					},{
					title:'汇款人',
					field:'col6',
					width:60
					},{
					title:'汇款金额',
					field:'col7',
					width:60,
					align:'right'
					},{
					title:'转账单据号',
					field:'col8',
					width:60
					},{
					title:'汇款时间',
					field:'col9',
					width:100
					},{
					title:'添加时间',
					field:'col10',
					width:100
					},
					{
				title : '操作',
				field:'opt',
				width:80,
				formatter:function(value,rec,index){
						var str='<a href="javascript:;" class="jsAudit">审核</a>';
						return str;
					}
			}
		]],
		onLoadSuccess:function(){
			
			$('.jsAudit').click(function(){
				ygDialog({
					width:850,
					height:540,
					title:'预存款充值审核',
					href:'pendingAudit-check.html',
					buttons:[{
					text:'通过',
					handler:function(dialog){
						save(dialog);
					}
						},{
						text:'拒绝',
						handler:'save'
					},{
						text:'修改备注',
						handler:'save'
					}]
				});
				return false;
			});
			
		}

	});

}

function save(dialog,t){
	var myform=$('#myForm');
	myform.form({
		url:'form3_proc.php',
		onSubmit:function(){
			return $(this).form('validate');
		},
		success:function(data){
			showSuc('操作成功！');
			dialog.close();
		}
	});
	myform.submit();
}
</script>
</head>

<body class="easyui-layout">

<div data-options="region:'north',border:false" class="toolbar-region">
    <div id="toolbar">
    </div>
</div>
<div  data-options="region:'center',border:false">
    <!--subLayout start-->
    <div class="easyui-layout" data-options="fit:true" id="subLayout">
        <!--搜索start-->
        <div data-options="region:'north',border:false" >
            <div class="search-div">
                <form name="searchForm" id="searchForm" action="" method="post" >
                    <table class="search-tb" >
                        <col width="80" />
                        <col/>
                        <col width="80" />
                        <col/>
                        <col width="80" />
                        <col/>
                        <col width="80" />
                        <col/>
                        <tbody>
                            <tr>
                                <th>分销商名称：</th>
                                <td><input class="ipt" /></td>
                                <th>汇款类型：</th>
                                <td><select id="remittanceType" name="remittanceType" class="easyui-combobox">
                                        <option value="">请选择</option>
                                        <option value="1">银行汇款</option>
                                        <option value="2">网上转帐</option>
                                    </select></td>
                                <th>汇款时间：</th>
                                <td><input class="ipt easyui-datebox w80" /> - <input class="ipt easyui-datebox w80" /></td>
                                <th>添加时间：</th>
                                <td><input class="ipt easyui-datebox w80" /> - <input class="ipt easyui-datebox w80" /> <a class="easyui-linkbutton ml10" id="SearchBtn">搜索</a></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
        <!--搜索end--> 
        <!--列表-->
        <div data-options="region:'center',border:false">
            <table id="tbList">
            </table>
        </div>
    </div>
    <!--subLayout end-->
</div>
</body>
</html>
